/**
 * 
 */
package co.fitstart.entity.coupon;

import com.demo2do.core.utils.Alias;

/**
 * @author Leo
 */
@Alias("couponTemplateType")
public enum Type {

    ALL("全网"),

    PRODUCT("单品"),
    
    CATEGORY("类别");

    private String description;

    /**
     * The default constructor
     */
    Type(String description) {
        this.description = description;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return this.description;
    }
    
    /**
     * 
     * @return
     */
    public boolean isProduct() {
        return this.equals(PRODUCT);
    }
    
    /**
     * 
     * @return
     */
    public boolean isCategory() {
        return this.equals(CATEGORY);
    }

}
